import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import InputReact from './compments/inputReact.js';



class App extends Component {
  constructor(props) {
      super(props);
      this.state = {
        value:'hello World'
      }
    }

  handChange = (event) => {
    console.log(event.target.value)
    this.setState({
      value:event.target.value
    })
  }

  render() {
    return (
      <div className="App">
        <InputReact value={this.state.value} onChange={this.handChange}/>
      </div>
    );
  }
}

export default App;
